﻿// //  ********************************************************************************
// //  Copyright (C) 2016 Sebastian Kenter. All rights reserved.
// // 
// //  Name    : PhotonServerProject | PhotonServerCommon | RealmTMap.cs
// //  Created : 2016 - 04 - 12 11:09
// //  Modified: 2016 - 04 - 18 09:38
// //  ********************************************************************************

using FluentNHibernate.Mapping;
using PhotonServerCommon.Entities.Domain;

namespace PhotonServerCommon.Entities.Mapping
{
    public class RealmTMap : ClassMap<RealmT>
    {
        public RealmTMap()
        {
            Schema("mseconfig");
            Table("realm_t");
            Id(x => x.RealmId).GeneratedBy.Assigned().Column("RealmId");
            Map(x => x.RealmName).Column("RealmName").Not.Nullable();
            Map(x => x.Region).Column("Region").Not.Nullable();
            Map(x => x.RealmServerId).Column("RealmServerId").Not.Nullable();
            Map(x => x.CurrentPopulation).Column("CurrentPopulation").Not.Nullable();
            Map(x => x.MaximumPopulation).Column("MaximumPopulation").Not.Nullable();
            Map(x => x.Queue).Column("Queue").Not.Nullable();
            Map(x => x.DzIns).Column("DzIns").Not.Nullable();
            Map(x => x.DzUpd).Column("DzUpd").Not.Nullable();
            Map(x => x.NamUpd).Column("NamUpd").Not.Nullable();
            Map(x => x.Tsn).Column("Tsn").Not.Nullable();
        }
    }
}
